﻿<Window x:Class="Tool12306.Windows.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="登录系统" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid Margin="5">
        <StackPanel>
            <StackPanel Orientation="Horizontal" Margin="5,5,5,0">
                <Label Content="帐号" VerticalAlignment="Center" Width="75"/>
                <TextBox Text="{Binding UserName, Mode=TwoWay}" Name="textBox1" VerticalAlignment="Center" Width="240" Height="40" VerticalContentAlignment="Center"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="5,5,5,0">
                <Label Content="密码" VerticalAlignment="Center" Width="75"/>
                <PasswordBox Name="textBox2" Width="240" Height="40" VerticalContentAlignment="Center"/>

            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="5,5,5,0">
                <Label Content="验证码" VerticalAlignment="Center" Width="75"/>
                <TextBox Text="{Binding Path=RandCode, Mode=TwoWay}" Name="textBox3" Width="120"/>
                <Button IsTabStop="False" Click="Button_Click">
                    <Image Name="image1" Stretch="Fill" Width="120" Height="40" />
                </Button>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="5,5,5,0">
                <Button Content="确定" Height="40" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Width="120" Click="button1_Click" IsDefault="True" Margin="5,5,5,5"/>
                <Button Content="关闭" Height="40" HorizontalAlignment="Left" Name="button2" VerticalAlignment="Top" Width="120" Click="button2_Click" IsCancel="True" Margin="0,5,5,5"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
